home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-09-28 | 1.7 KB | 49 lines |
- '*************************************
- '* AMOS Professional Interface *
- '* *
- '* Editing Zones *
- '* *
- '* (c) Europress Software *
- '* *
- '* Ronnie Simpson *
- '*************************************
- '
- Load "AMOSPro_Tutorial:Tutorials/Interface/Example_resource.abk"
- Resource Bank 16
- Resource Screen Open 0,640,200,0
- Flash Off : Curs Off : Cls 0 : Paper 0 : Pen 8
- Palette ,,,,$414,$858,$C9C,$EAE
- Wait Vbl : Paper 0
- A$=A$+"BUtton 0,292,180,56,14,0,0,1;[UNpack 0,0,BP49+;PR 8,4,'EDIT',8;][BQ;]"
- A$=A$+"RUn 0,7;"
- A$=A$+"EXit;"
- B$=B$+"SetVar 1,'Example of Interface editing Zones';"
- B$=B$+"SetVar 2,' Enter name:';"
- B$=B$+"SetVar 3,'Enter address:';"
- B$=B$+"SetVar 4,' Enter age:';"
- B$=B$+"SIze 520,120;"
- B$=B$+"BAse SW SX-2/,SH SY-2/;"
- B$=B$+"SAve 2;"
- B$=B$+"BOx 0,0,1,SX,SY;"
- B$=B$+"POutline 1VACX,10,1VA,0,14;"
- B$=B$+"PRint 24,32,2VA,9;"
- B$=B$+"LIne XB7+,YA4-,16,320;"
- B$=B$+"EDit 1,XA8+,YA4+,20,20,0,5,11;"
- B$=B$+"PRint 24,64,3VA,9;"
- B$=B$+"LIne XB7+,YA4-,16,480;"
- B$=B$+"EDit 2,XA8+,YA4+,40,40,0,5,11;"
- B$=B$+"PRint 24,96,4VA,9;"
- B$=B$+"LIne XB7+,YA4-,16,190;"
- B$=B$+"DIgit 3,XA8+,YA4+,3,0,0,5,11;"
- B$=B$+"BUtton 0,SX80-,SY24-,56,14,0,0,1;[UNpack 0,0,BP47+;PR 4,4,'Return',12;][BQ;]"
- B$=B$+"KY 13,0;"
- B$=B$+"RUn 0,3;"
- B$=B$+"EXit;"
- Dialog Open 1,B$
- X=Dialog Run(1)
- Locate 0,11 : Centre Rdialog$(1,1)+" resides at:-"
- Locate 0,13 : Centre Rdialog$(1,2)
- Locate 0,15 : Centre "And is only"+Str$(Rdialog(1,3))+" years old"
- Dialog Close
- X=Dialog Box(A$)
- Edit